import request from '@/utils/request'

export function getWithdrawList(query) {
  return request({
    url: '/finance/withdraw/getList',
    method: 'post',
    data: query
  })
}
export function getWithdrawUseable(query) {
  return request({
    url: '/finance/withdraw/getAvailable',
    method: 'post',
    data: query
  })
}

export function getWithdrawDetail(id) {
  return request({
    url: '/finance/withdraw/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveWithdraw(id) {
  return request({
    url: '/finance/withdraw/save',
    method: 'post',
    data: id
  })
}

export function removeWithdrawByID(id) {
  return request({
    url: '/finance/withdraw/delete',
    method: 'post',
    data: id
  })
}

export function changeWithdrawStatusByID(formdata) {
  return request({
    url: '/finance/withdraw/change-status',
    method: 'post',
    data: formdata
  })
}

